function round_x = myround(x)
%UNTITLED 此处显示有关此函数的摘要
%   对于不同的值，目标是，将小数位清零
%   举例：x=1.5 round_x=1 ；x=-1.5 round_x=-1
%   举例：x=0.9999  round_x=1 ;x=0.000001 round_x=0
temp=abs(x-round(x));
if x>0
    if temp<0.01
        round_x=round(x);
    else
        round_x=floor(x);
    end
else
    if temp<0.01
        round_x=round(x);
    else
        round_x=ceil(x);
    end
end

